Grid run

Explore hyperparameter spaces with 2D heatmap visualizations

source

grid_run

 grid_run (fun, **kwargs)

source

grid_show

 grid_show (r, figsize=(6, 6), colorfun=<ufunc 'log'>, textfun=<function
            <lambda>>)
r = grid_run(lambda localx, localy: localx * localy, localx = [1,2,3], localy=[2,3,4])
r['results']
array([[ 2.,  3.,  4.],
       [ 4.,  6.,  8.],
       [ 6.,  9., 12.]])
grid_show(r, figsize=(3,3))

To highlight the highest numbers use colorfun.

grid_show(r, figsize=(3,3), colorfun=lambda x: -np.log(x))